<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function run1(){
				document.write(this.name+"车"+this.mony+"万"+"<br/>");
			}
			function createobj(Sname,Smony){
				var obj=new Object();
				obj.name=Sname;
				obj.mony=Smony;
				obj.run=run1;
				return obj;
			}
			var obj1=createobj("兰博基尼",300);
			obj1.run();
			var obj2=createobj("宝马",50);
			obj2.run();
	</script>
</html>
